
package proyectodatos1verano.modelo;

public class NodoSimple<T> {
   
    private T data;
    private NodoSimple<T> nextNode;

    public NodoSimple(T _data, NodoSimple<T> n){
        data = _data;
        nextNode = n;
    }
    
    public NodoSimple(T _data){
        data = _data;
        nextNode = null;
    }
    

    public T getData() {
        return data;
    }


    public void setData(T data) {
        this.data = data;
    }


    public NodoSimple<T> getNextNode() {
        return nextNode;
    }


    public void setNextNode(NodoSimple<T> nextNode) {
        this.nextNode = nextNode;
    }
    
   
    public NodoSimple<T> getLastNode(){
        return nextNode;
    }
    
    public void setLastNode(NodoSimple<T> nextNode) {
        this.nextNode = nextNode;
    }
    
}

